package top.huhuiyu.myforum.model;

import java.io.Serializable;

import top.huhuiyu.myforum.util.JsonUtil;
import top.huhuiyu.myforum.util.PageBean;

public abstract class BaseModel implements Serializable {
	private static final long serialVersionUID = -6107676352577389893L;

	private PageBean page = new PageBean();
	private String servertoken;

	public BaseModel() {
	}

	public PageBean getPage() {
		return page;
	}

	public void setPage(PageBean page) {
		this.page = page;
	}

	public String getServertoken() {
		return servertoken;
	}

	public void setServertoken(String servertoken) {
		this.servertoken = servertoken;
	}

	@Override
	public String toString() {
		try {
			return JsonUtil.stringify(this);
		} catch (Exception e) {
			throw new RuntimeException(e);
		}
	}
}
